<!-- 卡务高级设置 -->
<template>
  <div class="router-content">
    <inside v-for="(div, index) in article" :key="index" :title="div.title" :contents="div.contents" :urls="div.urls"></inside>
  </div>
</template>

<script>
import Bus from '@/assets/bus'
import inside from '@/components/inside'
export default {
  name: 'index',
  components: {
    inside
  },
  data () {
    return {
      menus: [],
      article: []
    }
  },
  created () {
    this.menus = this.$route.matched
    Bus.$emit('menus', this.menus)
    // console.log(this.$route.matched)
    this.write()
  },
  methods: {
    write () {
      this.article = [
        {
          title: '卡押金',
          contents: [
            '能够设置适用所有卡类型的金额'
          ],
          urls: [
            '/static/imgs/setting/cardhigh_1.png'
          ]
        }, {
          title: '设置二维码',
          contents: [
            '点击“设置二维码”',
            '出现以下对话框，选择想要的卡类型和食客类别后，点击“确定”就会生成二维码。（需要点击保存才能保存成功）当顾客没有在卡务里开过卡又想在手机公众号里订餐时，用微信“扫一扫”二维码填写姓名和手机号、验证码即可开卡成功。',
            ''
          ],
          urls: [
            '/static/imgs/setting/cardhigh_2.png',
            '/static/imgs/setting/cardhigh_3.png',
            '/static/imgs/setting/cardhigh_4.png'
          ]
        }
      ]
    }
  }
}
</script>
<style>
</style>
